/*
 * FT6236.h
 *
 *  Created on: Apr 29, 2025
 *      Author: 17438
 */

#ifndef HARDWARE_FT6236_H_
#define HARDWARE_FT6236_H_

#define FT6236_LEAST_SIZE 0x7F //TODO
#define FT6236_LEAST_FORCE 0x7F //TODO

#include "main.h"
#include "i2c.h"

#define FT6236_ADDR 0x70	//TODO

typedef enum{
	FT6236_Touch_Event_Press = 0,
	FT6236_Touch_Event_Lift,
	FT6236_Touch_Event_Contect,
	FT6236_Touch_Event_None
}FT6236_Touch_Event;

typedef struct{
	FT6236_Touch_Event Event;
	uint16_t FT6236_Touch_X;
	uint16_t FT6236_Touch_Y;
	uint8_t FT6236_Touch_Size;
	uint8_t FT6236_Touch_Force;
}FT6236_Touch_TypeDef;

void FT6236_Init(void);
void FT6236_GetTouch(FT6236_Touch_TypeDef* FT6236_Touch_Structure);

#endif /* HARDWARE_FT6236_H_ */
